import Koa from "koa";
import middlewares from "./middlewares/index.js";
import router from "./routes/index.js";

const app = new Koa();
app.use(middlewares);
app.use(router.routes()).use(router.allowedMethods());

export default app;
